#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>

int main()
{
	int fd;
	fd = open("wxy", O_CREAT | O_EXCL, S_IRUSR | S_IWUSR | S_IRGRP | S_IXOTH);
	if(fd < 0)
		printf("open file error\n");
	else 
		printf("open file success\n");

	return 0;
}	

